/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Jiang Jinxi
 * Date: 2024-04-20
 * Time: 15:27
 */
public class Test2 {
    public static void main(String[] args) {
        RegularPolygon regularPolygon1 = new RegularPolygon();
        RegularPolygon regularPolygon2 = new RegularPolygon(6,4);
        RegularPolygon regularPolygon3 = new RegularPolygon(10,4,5.6,7.8);
        System.out.println(regularPolygon1.getPerimeter());
        System.out.println(regularPolygon1.getArea());
        System.out.println(regularPolygon2.getPerimeter());
        System.out.println(regularPolygon2.getArea());
        System.out.println(regularPolygon3.getPerimeter());
        System.out.println(regularPolygon3.getArea());
    }
}
